package com.xjx.pojo.dto;

import jakarta.validation.constraints.*;
import lombok.Data;

@Data
public class BookCreateDTO {
    @NotBlank(message = "书名不能为空")
    @Size(max = 200)
    private String title;

    @Size(max = 128)
    private String author;

    @NotBlank(message = "ISBN不能为空")
    @Size(max = 32)
    private String isbn;

    @Size(max = 64)
    private String category;

    @NotNull(message = "库存数量不能为空")
    @Min(value = 0)
    private Integer stock;
}